﻿using SqlSugar;
using System;
using System.Linq;
using System.Text;

namespace Models
{
    ///<summary>
    ///点检记录表
    ///</summary>
    public partial class inspection_records
    {
        public inspection_records()
        {


        }
        /// <summary>
        /// Desc:记录ID
        /// Default:
        /// Nullable:False
        /// </summary>     
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long id { get; set; }

        /// <summary>
        /// Desc:任务ID
        /// Default:
        /// Nullable:False
        /// </summary>           
        public long task_id { get; set; }

        /// <summary>
        /// Desc:点检项ID
        /// Default:
        /// Nullable:False
        /// </summary>           
        public long item_id { get; set; }

        /// <summary>
        /// Desc:实际值
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string actual_value { get; set; }

        /// <summary>
        /// Desc:结果状态：1-正常，2-异常，3-待处理
        /// Default:
        /// Nullable:False
        /// </summary>           
        public byte result_status { get; set; }

        /// <summary>
        /// Desc:备注
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string remark { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:CURRENT_TIMESTAMP
        /// Nullable:True
        /// </summary>           
        public DateTime? created_at { get; set; }

        /// <summary>
        /// Desc:更新时间
        /// Default:CURRENT_TIMESTAMP
        /// Nullable:True
        /// </summary>           
        public DateTime? updated_at { get; set; }

        /// <summary>
        /// Desc:委托单号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string work_order_no { get; set; }

        /// <summary>
        /// Desc:点检标题
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string inspection_title { get; set; }

        /// <summary>
        /// Desc:点检内容
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string inspection_content { get; set; }

        /// <summary>
        /// Desc:巡检照片文件路径
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string inspection_photo_path { get; set; }

        /// <summary>
        /// Desc:检查时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? inspection_time { get; set; }

        /// <summary>
        /// Desc:问题描述
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string issue_description { get; set; }

        /// <summary>
        /// Desc:下一步委托方（部门/角色）
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string next_assign_party { get; set; }

        /// <summary>
        /// Desc:检查人用户ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? inspector_id { get; set; }

        /// <summary>
        /// Desc:修复图片文件路径
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string repair_photo_path { get; set; }

        /// <summary>
        /// Desc:修复结果：0-未修复，1-修复完成，2-修复失败
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public byte? repair_result { get; set; }

        /// <summary>
        /// Desc:修复时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? repair_time { get; set; }

        /// <summary>
        /// Desc:修复人用户ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? repair_user_id { get; set; }

    }
}
